package cc.iits.demo.crane.api;

import java.math.BigDecimal;
import java.nio.charset.Charset;
import java.util.Date;
import java.util.List;

/**
 * 系统常量
 *
 * @author 易俊
 */
public class Constants {

    public final static Class<?> STRING_CLASS = String.class;
    public final static Class<?> INTEGER_CLASS = Integer.class;
    public final static Class<?> DECIMAL_CLASS = BigDecimal.class;
    public final static Class<?> DOUBLE_CLASS = Double.class;
    public final static Class<?> BOOLEAN_CLASS = Boolean.class;
    public final static Class<?> DATE_CLASS = Date.class;
    public final static Class<?> List_CLASS = List.class;

    public static final Charset UTF8 = Charset.forName("utf-8");

    public static final String MINUS = "-";

    public static final String DOT = ".";

    public static final String UNDERLINE = "_";

    public static final String COMMA = ",";

    /**
     * 日期
     */
    public static final String DATE_PATTERN = "yyyy-MM-dd";

    public static final String SHORT_DATE_PATTERN = "yyMMdd";

    /**
     * 时间
     */
    public static final String DATETIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
}
